import React, { Component } from 'react';
import Taro from '@tarojs/taro';
import {Block} from '@tarojs/components';
import CustomTabTar from "../components/tabBar/tab-bar";

interface PageState {
  tabBarInfo: any
  pagePath: any
  isBigIndexPage: any
}

export default class CustomTabBar extends Component {

  state: PageState = {
    tabBarInfo: {},
    pagePath: '',
    isBigIndexPage: false
  }

  static options = {
    addGlobalClass: true
  }

  render () {
    const {tabBarInfo, pagePath, isBigIndexPage} = this.state
    return (
      <Block>
        <CustomTabTar tabBarInfo={tabBarInfo} pagePath={pagePath} isBigIndexPage={isBigIndexPage} />
      </Block>
    )
  }
}
